package com.ajax.service.impl;

import com.ajax.bean.User;
import com.ajax.dao.impl.UserDaoImpl;
import com.ajax.service.UserService;

import java.util.List;

/**
 * 调取Dao层的方法
 * 属于C(Controller)控制层
 */
public class UserServiceImpl implements UserService {

    private UserDaoImpl userDao = new UserDaoImpl();

    @Override
    public List<User> getAll() {
        return userDao.getAll();
    }
}
